package top.zhangjianyong.tools.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import top.zhangjianyong.tools.entity.marirui.JJ;

import java.util.List;

public interface JJMapper extends BaseMapper<JJ> {
    @Select("SELECT * from mairui_jj  a where  NOT  EXISTS (SELECT 1 from mairui_jjgz b where b.dm=a.dm) limit ${num}" )
    List<JJ> listNotGzLimit(Integer num);
}
